package zli.prototype.general;

/**
 * @Desc
 * @Author Zerlinda
 * @Date 2022/5/9 10:33
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        // 创建原型对象
        ConcretePrototype concretePrototype = new ConcretePrototype();
        concretePrototype.setAge(14);
        concretePrototype.setName("Tom");
        System.out.println(concretePrototype);

        // 拷贝原型对象
        ConcretePrototype cloneType = concretePrototype.clone();
        System.out.println(cloneType);
    }
}
